package com.bjpowernode.springevent.events;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
@Getter
public class NoticeEvent extends ApplicationEvent {
    private String msg;
    //Object source:事件源
    public NoticeEvent(Object source) {
        super(source);
    }

    public NoticeEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
    }

}
